function searchGroup()
    {
        document.getElementById("searchResult").innerHTML = "";

        var name = $("#NameGroup").val();
        
            var xmlhttp = new XMLHttpRequest();

            xmlhttp.open("GET", "/Group/SearchXML?name=" + name, false);
            xmlhttp.send();

            parser = new DOMParser();
            xmlDoc = parser.parseFromString(xmlhttp.responseText, "text/xml");

            var strResult = "";
            var x = xmlDoc.getElementsByTagName("Group");
            var n = 0;

            if (x[0].getElementsByTagName("Id")[0].childNodes[0].nodeValue != 0)
            {
                strResult += "<p>Display Groups</p>";
                strResult += "      <div class=\"form-content\">";
                strResult += "            <table width=\"100%\" class=\"tbContent\">";
                strResult += "                <thead>";
                strResult += "                    <tr>";
                strResult += "		                <td> STT </td>";
                strResult += "		                <td> Group Name </td>";
                strResult += "		                <td> Operations </td>";
                strResult += "	                </tr>";
                strResult += "                </thead>";
                strResult += "	            <tbody>";

                
                for (i = 0; i < x.length; i++)
                {
                    n++;
                    strResult += "                   <tr>";
                    strResult += "                    <td>";
                    strResult += n.toString();
                    strResult += "                    </td>";
                    strResult += "                    <td>";
                    strResult += x[i].getElementsByTagName("Name")[0].childNodes[0].nodeValue.toString();
                    strResult += "                    </td>";
                    strResult += "                        <td>";
                    strResult += "                            <a href=\"/Group/Edit\">Edit</a>";
                    strResult += "                            <a href=\"/Group/Delete\">Delete</a>";
                    strResult += "                        </td>";
                    strResult += "                    </tr>";
                }
                strResult += "                </tbody>";
                strResult += "            </table>";
                strResult += "        </div>";

                document.getElementById("searchResult").innerHTML = strResult;
            }
    }